class Page14 extends BaseScreen {
    public constructor() {
        super();
        this.skinName = "resource/eui_skins/Page14Skin.exml";
    }

	private img_1: eui.Image;
    private img_2: eui.Image;
    private img_3: eui.Image;
    private img_4: eui.Image;
	private img_5: eui.Image;
    private img_6: eui.Image;
    private img_7: eui.Image;
    private img_8: eui.Image;
    private img_9: eui.Image;
    private img_10: eui.Image;
    private mask_6:eui.Rect;
    private img_6_y:number = 0;
    private img_8_x:number = 0;
    private img_9_x:number = 0;
    private img_3_x:number = 0;
    private img_4_x:number = 0;
    private img_10_x:number = 0;
    protected childrenCreated(): void {
        super.childrenCreated();
        
        this.img_6_y = this.img_6.y;
        this.img_8_x = this.img_8.x;
        this.img_9_x = this.img_9.x;
        this.img_3_x = this.img_3.x;
        this.img_4_x = this.img_4.x;
        this.img_10_x = this.img_10.x;
        
        // this.anchorOff(this.img_3);
        // this.anchorOff(this.img_4);
        this.img_6.mask = this.mask_6;
        this.init_view();
        this.resetui();
    }

    public resetui(){
        this.img_1.alpha = 0;

		this.img_2.scaleY = 0;
		this.img_3.x = 640;
		this.img_4.x = 640;
		this.img_5.scaleY = 0;
        this.img_6.x = 640;
        this.img_7.scaleY = 0;

         this.img_8.x =  this.img_9.x =  this.img_10.x = 640;
        if(this.xx_page){
            this.xx_page.stop();
        }
    }

    public init_view() {
        this.showPage();
    }

    public showPage() {
        super.showPage();
        this.resetui();

        egret.Tween.get(this.img_1).to({ alpha:1}, 2000);
        egret.Tween.get(this.img_2).wait(600).to({scaleY:1}, 1000, egret.Ease.backOut);
		egret.Tween.get(this.img_3).wait(900).to({x:this.img_3_x}, 1000, egret.Ease.backOut);
        egret.Tween.get(this.img_4).wait(1200).to({x:this.img_4_x}, 1000, egret.Ease.backOut);
		egret.Tween.get(this.img_5).wait(1200).to({scaleY:1}, 1000, egret.Ease.backOut);
        egret.Tween.get(this.img_6).wait(1600).to({x:0}, 1000, egret.Ease.backOut);
        egret.Tween.get(this.img_7).wait(1900).to({scaleY:1}, 1000, egret.Ease.backOut);

        egret.Tween.get(this.img_8).wait(2300).to({x:this.img_8_x}, 1000, egret.Ease.backOut);
        egret.Tween.get(this.img_9).wait(2600).to({x:this.img_9_x}, 1000, egret.Ease.backOut);
        egret.Tween.get(this.img_10).wait(2900).to({x:this.img_10_x}, 1000, egret.Ease.backOut);
        if(this.xx_page){
            this.xx_page.start();
        }
    }

    public resize(): void {
         super.resize();
    }

	protected process(){
        
    }

    
}